home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / exit2dos.doc < prev    next >
Text File  |  1986-10-18  |  803b  |  39 lines

  1.  
  2.  
  3.  
  4.         NAME
  5.                 exit2dos -- permission to exit program
  6.  
  7.         SYNOPSIS
  8.                 void exit2dos();
  9.  
  10.  
  11.         DESCRIPTION
  12.         When invoked, this function clears the screen and places
  13.         the message "Exit to DOS?" in the center of the display.
  14.         The keyboard is read, and if the response is 'Y' or 'y',
  15.         an aabort(0) function is called.  For any other response,
  16.         the function simply returns to the users program, which
  17.         must then do whatever is necessary to continue with the
  18.         program.
  19.  
  20.  
  21.  
  22.         EXAMPLE
  23.                 if(getche() == ESC) exit2dos();  /* watch for ESCape key */
  24.                 else domorework();
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.